const Router = require("koa-router");
const commonfm = require("./common");
const userRoutes = require("./userRoutes");
const deptRoutes = require("./deptRoutes");
const systemController = require("../controllers/systemController");

const router = new Router();

router.use(commonfm.routes()).use(commonfm.allowedMethods());
router.use(userRoutes.routes()).use(userRoutes.allowedMethods());
router.use(deptRoutes.routes()).use(deptRoutes.allowedMethods());

module.exports = router.routes();
